package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.SpecValue;
import com.weixing.mall.provider.model.query.SpecValueQuery;
import com.weixing.mall.provider.model.vo.SpecValueVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品规格值 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface SpecValueMapper extends BaseMapper<SpecValue> {
    /**
     * @Description 条件查询规格值 <br/>
     * @author gjq
     * @date 2019/8/12 11:03
     * @param specValueQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.SpecValueVo>
     */
    IPage<SpecValueVo> selectList(@Param("pg") Page page, @Param("qs")SpecValueQuery specValueQuery);
    IPage<SpecValueVo> selectListByLevel(@Param("pg") Page page, @Param("qs")SpecValueQuery specValueQuery);
    List<SpecValueVo> selectListByLevel(@Param("qs")SpecValueQuery specValueQuery);
    List<SpecValueVo> selectList(@Param("qs")SpecValueQuery specValueQuery);

    SpecValueVo selectSprcByErpId(@Param("specId")long specId, @Param("erpId")String erpId);
}